import { FormComponentProps } from 'antd/lib/form';
import { SubscriptionAPI } from 'dva';
import { RouteComponentProps } from 'dva/router';
import { IPatientItem } from './../../../api/WeChatDoctor';

export interface IProps
  extends FormComponentProps,
    SubscriptionAPI,
    RouteComponentProps<{
      groupId: string;
      type: string;
    }> {}
export interface IState {
  name: string;
  description?: string;
  type: number;
  refreshUserIds: string[];
  joinUserIdList?: string[];
  hulkUserInfoList: IPatientItem[];
  wechatUserRole: number;
}
export interface IFilter {
  pageNum: number;
  pageSize: number;
  name: string;
}
export interface IPatientList {
  filter: IFilter;
  data: IListResult;
}
export interface IListResult {
  records?: IPatient[];
  current?: number;
  pages?: number;
  size?: number;
  total?: number;
}
export interface IPatient {
  age: number;
  attentionTime: string;
  gender: number;
  headimgurl: string;
  id: string;
  name: string;
  sampleSequence: string;
  isChoosed?: boolean;
  isDeleting?: boolean;
  morphUserUuid?: string;
  joinTime: string;
}
